using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace Iacym.Entities
{
    public partial class Agendum : BaseEntity
    {
        public Agendum()
        {
            this.DETALLE_CITA = new List<DETALLE_CITA>();
        }

        public int Id { get; set; }
        [Display(Name = "Persona")]
        [Required(ErrorMessage = "Se requiere una Persona.")]
        public int PersonaId { get; set; }
        public System.DateTime FechaInicio { get; set; }
        public System.DateTime FechaFin { get; set; }
        public string Motivo { get; set; }
        public virtual PERSONA PERSONA { get; set; }
        public virtual List<DETALLE_CITA> DETALLE_CITA { get; set; }

        public override string ToString()
        {
            return FechaInicio.ToShortDateString();
        }
    }
}
